package com.bihu.bihudemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * (Tag)表实体类
 *
 * @author makejava
 * @since 2020-07-15 17:10:37
 */
@SuppressWarnings("serial")
public class Tag extends Model<Tag> {
    //标签ID

    @TableId(type = IdType.AUTO)
    private Integer id;
    //标签名
    private String tagname;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTagname() {
        return tagname;
    }

    public void setTagname(String tagname) {
        this.tagname = tagname;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}